Create or Update Merchant Organization

Operation to create or update merchant organization details.

POST https://anzworldline.gateway.mastercard.com/api/nvp/version/100

Authentication

This operation requires authentication via one of the following methods:


  • Certificate authentication.
  • To authenticate to the API two additional NVP parameters must be supplied in the request. Provide 'MSO.<your gateway MSO ID>' in the apiUsername field and your API password in the apiPassword field.

Request

Fields

apiOperation String = UPDATE_MERCHANT_ORGANIZATION FIXED

Any sequence of zero or more unicode characters.

correlationId String OPTIONAL

A transient identifier for the request, that can be used to match the response to the request.

The value provided is not validated, does not persist in the gateway, and is returned as provided in the response to the request.

Data can consist of any characters

Min length: 1 Max length: 100
merchantOrganization REQUIRED

A merchant organization is a grouping of merchants and other merchant organizations that allows a large customer to effectively manage their gateway merchant profiles.Typically the merchant organization structure will correspond to the customer's corporate structure.

merchantOrganization.address REQUIRED

The address of the primary contact person for this merchant organization.

merchantOrganization.address.city String REQUIRED

The city or town of the street address.

Data can consist of any characters

Min length: 1 Max length: 30
merchantOrganization.address.countryCode Upper case alphabetic text REQUIRED

The 3 letter ISO standard alpha country code of the address.

Data must consist of the characters A-Z

Min length: 3 Max length: 3
merchantOrganization.address.postcode String REQUIRED

The post code or zip code of the address.

Data can consist of any characters

Min length: 1 Max length: 16
merchantOrganization.address.state String REQUIRED

The state or province of the address in a form recognized for postal delivery.

Data can consist of any characters

Min length: 1 Max length: 30
merchantOrganization.address.street1 String REQUIRED

The first line of the street address.

Data can consist of any characters

Min length: 1 Max length: 40
merchantOrganization.address.street2 String OPTIONAL

An optional second line of the street address.

Data can consist of any characters

Min length: 1 Max length: 40
merchantOrganization.authority Enumeration REQUIRED

Allows you to define that this merchant organization represents the top of the hierarchy for a legal entity (the gateway calls this a 'Corporate Merchant Organization').You will only be able to assign merchants to merchant organizations within the hierarchy for this Corporate Merchant Organization, if you have first assigned the merchant to this Corporate Merchant Organization.This ensures that you do not accidentally assign a merchant to a merchant organization that belongs to a different legal entity.Only make a merchant organization a corporate merchant organization if you are not planning to assign any parent merchant organizations to it.

Value must be a member of the following list. The values are case sensitive.

CORPORATE
NOT_CORPORATE
merchantOrganization.contactName String REQUIRED

The name of the primary contact person for this merchant organization.

Data can consist of any characters

Min length: 1 Max length: 100
merchantOrganization.contactNameAlternative String OPTIONAL

The name of a contact person for this merchant organization, in case where the primary contact is unavailable.

Data can consist of any characters

Min length: 1 Max length: 100
merchantOrganization.description String OPTIONAL

A textual description of the business purpose for which this merchant organization is used.

For example, 'Acme East Asia accounts department'.

Data can consist of any characters

Min length: 1 Max length: 200
merchantOrganization.email Email REQUIRED

The email address of the primary contact person for this merchant organization.

The field format restriction ensures that the email address is longer than 3 characters and adheres to a generous subset of valid RFC 2822 email addresses.

Ensures that the email address is longer than 3 characters and adheres to a generous subset of valid RFC 2822 email addresses

merchantOrganization.emailAlternative Email OPTIONAL

The email address of the alternative contact person for this merchant organization.

The field format restriction ensures that the email address is longer than 3 characters and adheres to a generous subset of valid RFC 2822 email addresses.

Ensures that the email address is longer than 3 characters and adheres to a generous subset of valid RFC 2822 email addresses

merchantOrganization.name String REQUIRED

The legal name of the corporate entity for which this merchant organization was created.

For example, Acme Holdings Pty Ltd.

Data can consist of any characters

Min length: 1 Max length: 100
merchantOrganization.parentMerchantOrganizations Alphanumeric + additional characters OPTIONAL

The list of merchant organizations of which this merchant organization is a member.

If this field is present on an Update Merchant Organization request, any existing parent merchant organizations will be replaced with this set. If this field is absent: when updating a merchant organization, any existing parent merchant organizations will be removed.when creating a new merchant organization, there will be no parent merchant organizations.

Data may consist of the characters 0-9, a-z, A-Z, '-', '_'

Min length: 1 Max length: 16
merchantOrganization.phone Telephone Number REQUIRED

The phone number for the primary contact person in ITU-T E123 format, for example +1 607 1234 5678.

The number consists of: '+' country code (1, 2 or 3 digits) 'space' national number ( which may embed single spaces characters for readability).

Data consists of '+', country code (1, 2 or 3 digits), 'space', and national number (which may embed single space characters for readability)

Mandatory country code: true Max total digits: 15
merchantOrganization.phoneAlternative Telephone Number OPTIONAL

The phone number for a alternative contact person in ITU-T E123 format, for example +1 607 1234 5678.

The number consists of: '+' country code (1, 2 or 3 digits) 'space' national number ( which may embed single spaces characters for readability).

Data consists of '+', country code (1, 2 or 3 digits), 'space', and national number (which may embed single space characters for readability)

Mandatory country code: true Max total digits: 15
merchantOrganization.administrativePassword String OPTIONAL

The initial password for the merchant organization's administrative user.

This must be provided on operations that create merchant organizations. If it is provided and the merchant organization already exists, this value must match the current value, otherwise the update will be rejected.

Data can consist of any characters

Min length: 8 Max length: 4098
merchantOrganization.id Alphanumeric + additional characters REQUIRED

The unique identifier of the merchant organization on the gateway.The identifier must use a prefix assigned to you by ANZ Worldline Payment Solutions.

For example, if you have been assigned the prefix 'XYZBANK', and you are creating the 'account department' merchant organization for Acme corp, you could set merchantOrganization to XYZBANK_ACCOUNTS.

Data may consist of the characters 0-9, a-z, A-Z, '-', '_'

Min length: 1 Max length: 16
mso Alphanumeric + additional characters REQUIRED

The identifier that uniquely identifies you or an MSO that has authorized you to use this operation on their behalf.

Data may consist of the characters 0-9, a-z, A-Z, '-', '_', ' ', '&', '+', '!', '$', '%', '.'

Min length: 1 Max length: 16

Response

Fields

correlationId String CONDITIONAL

A transient identifier for the request, that can be used to match the response to the request.

The value provided is not validated, does not persist in the gateway, and is returned as provided in the response to the request.

Data can consist of any characters

Min length: 1 Max length: 100
result Enumeration ALWAYS PROVIDED

A system-generated high level overall result of the operation.

Value must be a member of the following list. The values are case sensitive.

FAILURE

The operation was declined or rejected by the gateway, acquirer or issuer

PENDING

The operation is currently in progress or pending processing

SUCCESS

The operation was successfully processed

UNKNOWN

The result of the operation is unknown

Errors

error

Information on possible error conditions that may occur while processing an operation using the API.

error.cause Enumeration

Broadly categorizes the cause of the error.

For example, errors may occur due to invalid requests or internal system failures.

Value must be a member of the following list. The values are case sensitive.

INVALID_REQUEST

The request was rejected because it did not conform to the API protocol.

REQUEST_REJECTED

The request was rejected due to security reasons such as firewall rules, expired certificate, etc.

SERVER_BUSY

The server did not have enough resources to process the request at the moment.

SERVER_FAILED

There was an internal system failure.

error.explanation String

Textual description of the error based on the cause.

This field is returned only if the cause is INVALID_REQUEST or SERVER_BUSY.

Data can consist of any characters

Min length: 1 Max length: 1000
error.field String

Indicates the name of the field that failed validation.

This field is returned only if the cause is INVALID_REQUEST and a field level validation error was encountered.

Data can consist of any characters

Min length: 1 Max length: 100
error.supportCode String

Indicates the code that helps the support team to quickly identify the exact cause of the error.

This field is returned only if the cause is SERVER_FAILED or REQUEST_REJECTED.

Data can consist of any characters

Min length: 1 Max length: 100
error.validationType Enumeration

Indicates the type of field validation error.

This field is returned only if the cause is INVALID_REQUEST and a field level validation error was encountered.

Value must be a member of the following list. The values are case sensitive.

INVALID

The request contained a field with a value that did not pass validation.

MISSING

The request was missing a mandatory field.

UNSUPPORTED

The request contained a field that is unsupported.

result Enumeration

A system-generated high level overall result of the operation.

Value must be a member of the following list. The values are case sensitive.

ERROR

The operation resulted in an error and hence cannot be processed.


Resources

Glossary FAQs